package org.anupta.game.server.inter.packet.account;

import org.anupta.game.main.Main;
import org.anupta.game.server.inter.client.InterClient;
import org.anupta.game.server.inter.packet.InterPacket;
import org.apache.mina.core.buffer.IoBuffer;

public class AccountWaiting extends InterPacket {
	private int accId = 0;

	public AccountWaiting(InterClient client, IoBuffer packet) {
		super(client, packet);
		unpack(packet);
		doPacket(packet);
	}

	@Override
	public void unpack(IoBuffer buffer) {
		accId = buffer.getInt();
	}

	@Override
	public void pack(IoBuffer buffer) {
	}

	@Override
	public void doPacket(IoBuffer buffer) {
		Main.game.addAccWaiting(accId);
	}
}
